package com.guotong.sysUser;



import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysUserService {


    @Autowired
    private SysUserDao sysUserDao;

    public List<SysUser> findAll(){
        return sysUserDao.findAllUser();

    }

    public SysUser findByUsername(String username){
        return sysUserDao.findByUsername(username);
    }
}
